import request_app from "../request_app.js";

/** 物业公积金首页 */
export const propertyProvidentHomepage = (params) => {
  return request_app("propertyPayment/propertyProvidentHomepage", params, "get");
};
/**
 *
 * 地址列表
 * @param object data
 */
export const getAddressList = (params) => {
  return request_app("address/list", params, "get");
};
/**
 * 设置默认地址
 * @param int id
 */
export const setAddressDefault = (id) => {
  return request_app("address/default/set", { id: id }, "post");
};
/**
 * 删除地址
 * @param int id
 *
 */
export const delAddress = (id) => {
  return request_app("address/del", { id: id }, "post");
};
/**
 * 修改 添加地址
 * @param object data
 */
export const editAddress = (data) => {
  return request_app("address/edit", data, "post");
};
/**
 * 获取城市信息
 */
export const getCity = (data) => {
  return request_app("city/list", { noAuth: true }, data, "get");
};
/**
 * 获取单个地址
 * @param int id
 */
export const getAddressDetail = (id) => {
  return request_app("address/detail/" + id, id, "get");
};
/**
 * 文章详情
 * @param int id
 *
 */
export const getArticleDetails= (id) => {
  return request_app("article/info", id, { noAuth: true }, "get");
}
